
<%@page import="com.susem.mw.util.ThesisUtils"%>
<%@page import="java.util.HashMap"%>
<%@page import="java.util.Map"%>
<%@page import="org.jbpm.api.TaskService"%>
<%@page import="org.jbpm.api.Configuration"%>
<%@page import="org.jbpm.api.ProcessEngine"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>

<%
ProcessEngine engine = ThesisUtils.PROCESS_ENGINE;

TaskService ts = engine.getTaskService();
String status = request.getParameter("status").toLowerCase();
String taskId = request.getParameter("taskId");
Map<String, Object> variables = new HashMap<String, Object>();
variables.put("status", status + "ed");
ts.setVariables(taskId, variables);
ts.completeTask(taskId);
out.println("Proposal status updated! Use links below to browse functionality.");
out.print("<br/><br/>");
%>
<jsp:include page="indexLinks.jsp"/>